package com.dao;

import com.po.UserPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author linyukun
 * @date 2022/7/5 19:07
 */
@Mapper
@Repository
public interface UserDao {

    UserPO getUserByUserName(@Param("userName") String userName);

    void changePwdByUserName(@Param("userName")String userName,@Param("password") String newPwd);

    UserPO getUserByName(@Param("userName")String userName);

    UserPO getUserById(@Param("id")String id);

    UserPO getUserByNameAll(@Param("userName")String userName);
}
